import javax.swing.*;
import java.util.Scanner;

public class Test {

    public static void main(String[] args) {



        Scanner sc=new Scanner(System.in);
        double pi=3.14;
        System.out.println("请输入半径");
        double r=sc.nextByte();
        System.out.println("圆的周长为:"+2*pi*r);

        System.out.println("-----------------");
        System.out.println("请输入a b c 的值：");
        int a=sc.nextByte();
        int b=sc.nextByte();
        int c=sc.nextByte();
        System.out.println("a b c和为："+a+b+c);

        System.out.println("-----------------");

        short year=2022;
        byte month=3;
        byte day=4;
        float p=0.03f;
        char d=' ';
        float temp=35.5f;
        boolean ppp=true;

        System.out.println("请输入长方体的长宽高");
        double width;
        double height;
        double length;
        width=sc.nextDouble();
        height=sc.nextDouble();
        length=sc.nextDouble();
        System.out.println("体积为："+width*height*length);

        //         4.
//         下面几行代码有没有问题?
//         byte e = 128; //有问题
//         short s = 32767;
//         int d = 3.3;//有问题
//         long l = 1231231231231323;//有问题
//         float a = 2.2;//有问题
//         double b = 3;
//         double c = 3.3;

        System.out.println("请输入身高体重：");
        float BMI;
        float heightb=sc.nextFloat();
        float weight=sc.nextFloat();
        System.out.println("BMI为："+weight/(heightb*heightb));



    }
}
